/*public class test1 {//类名采用大驼峰
    //这些是成员变量
    public String brand;
    public String type;
    //这些是成员方法
     public void washClothes(){
         System.out.println("洗衣服功能");
     }
    public void dryClothes(){
        System.out.println("脱水功能");
    }
    public void settime(){
        System.out.println("定时功能");
    }
}*/
/*
class Dog {
    public String name;
    public String color;

    public void barks(){
        System.out.println(name + "汪汪汪");
    }

    public void wag() {
        System.out.println(name + "摇尾巴");
    }

    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "小旺";
        dog.barks();
        dog.wag();
    }
}*/

//餐厅的服务流程
class Restaurant{
    public String waiter;//服务员，端菜
    public String cashiers;//收款员
    public String cook;

    public void a(){
        System.out.println(cashiers + "收钱");
    }
    public void b(){
        System.out.println(cook + "做饭");
    }
    public void c(){
        System.out.println(waiter + "上菜");
    }

    public static void main(String[] args) {
        Restaurant rest = new Restaurant();
        rest.waiter = "小王";
        rest.cashiers = "小李";
        rest.cook = "小张";
        rest.a();
        rest.b();
        rest.c();
    }
}
